<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>

        <title>Adria d.m.c. | <?=$seo_title?></title>

        <meta http-equiv="content-type" content="text/html;charset=utf-8" />
        <link rel="icon" href="<?=base_url()?>assets/img/logo-ico.png" type="image/x-icon" />        

        <!-- Set base and site url JS -->
        <script type="text/javascript">
            var base_url = '<?=base_url()?>';
            var site_url = '<?=site_url()?>';
            var p = '<?=$page?>';
        </script>

        <?  
            $this->carabiner->display('css');     
            $this->carabiner->display('js');     
        ?>

        <meta name="keywords" content="<?=$seo_keywords?>" />
        <meta name="description" content="<?=$seo_description?>" />
        <meta name="Language" content="<?=$lang?>" />
        <meta name="Robots" content="index,follow" />
        <meta name="Rating" content="general" />
        <meta name="Author" content="AMC Communications # amc@t-com.me" />
        <meta name="revisit-after" content="2 days" />
        <meta name="Distribution" content="global" />

        <!-- Google analitics -->
        <script type="text/javascript">

            var _gaq = _gaq || [];
            _gaq.push(['_setAccount', 'UA-22094931-1']);
            _gaq.push(['_trackPageview']);

            (function() {
                var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
                ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
                var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
            })();

        </script>
    </head>
    <body id="<?=$page;?>">

        <div id="wrap-out">
            <? if($page=='home') //$this->load->view('web-poll')?>
            <div id="wrap">

                <div class="holder">
                    <div id="header"> 
                        <div class="languages">   
                            <div><a href="<?=base_url()?>lngen<?=$page.'/'.$sub?>"><img alt="en" src="<?=base_url()?>assets/img/flags/en.gif" /></a></div> 
                            <!--<div><a href="<?=base_url()?>lngme<?=$page.'/'.$sub?>"><img alt="me" src="<?=base_url()?>assets/img/flags/me.gif" /></a></div>-->
                        </div>
                        <? $this->load->view('header')?> 
                    </div>
                    <div id="mainmenu"> <? $this->load->view('nav')?> </div>
                    <div id="precontent">
                        <div id="whereiam"> <? $this->load->view('whereiam')?> </div>
                        <div id="smallwrap" class="">
                            <div id="sidebar"> <? $this->load->view('sidebar')?> </div>
                            <div id="content"> <?echo $content_for_layout;?></div>
                            <div id="content_menu_holder" style="display: none;"> 
                                <div id="content_menu"> 
                                    <a title="Close" class="modalCloseImg zseaClose" style=""></a>
                                    <div id="menu"> &nbsp; </div> <div style="clear: both;"></div>
                                </div>
                            </div>
                        </div>
                        <div id="footer"> <? $this->load->view('footer')?> </div>
                    </div>
                    <?
                        if($page=='home' || $page=='cruisehandling' || $page=='mice' || $page=='transportation' || $page=='company' || $page=='links' || $page=='wineanddine'|| $page=='news'){
                        ?>
                        <script>
                            if (document.documentElement.scrollHeight === document.documentElement.clientHeight) {
                                //alert("There is no vertical scrollbar")
                                jQuery('#wrap-out').css('height','100%');
                                jQuery('#wrap').css('height','100%');
                            }
                            jQuery(window).resize(function () { 
                                if (document.documentElement.scrollHeight === document.documentElement.clientHeight) {
                                    //alert("There is no vertical scrollbar")
                                    jQuery('#wrap-out').css('height','100%');
                                    jQuery('#wrap').css('height','100%');
                                }else{
                                    jQuery('#wrap-out').removeAttr("style")
                                    jQuery('#wrap').removeAttr("style")
                                }
                            });
                        </script>
                        <?  
                        }
                    ?>
                </div>     
            </div>
        </div>
    </body>
</html>
